package mediator.practice_02;

/**
 * @author yi qiang
 * @date 2021/6/21 23:39
 */
public abstract class Colleague {

    private Mediator mediator;
    public String name;

    public Colleague( Mediator mediator,String name){
        this.mediator=mediator;
        this.name=name;
    }

    public Mediator getMediator(){
        return this.mediator;
    }

    /**
     * 向中介者发送消息
     * @param stageChange 消息
     */
    public abstract void sendMessage(int stageChange);

}
